package com.atguigu.spring.demo04.service.impl;

import com.atguigu.spring.demo04.dao.StuDao;
import com.atguigu.spring.demo04.service.api.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Primary
@Service("stuService")
public class StuServiceImpl02 implements StuService {

    @Autowired
    private StuDao stuDao;

    @Override
    public void showMessage() {
        stuDao.showMessage();
        System.out.println("Stu Service 02 Message:Hello ...");
    }
}
